﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SystemUpdatesCore.Server
{
    /// <summary>
    /// 服务端版本实体
    /// </summary>
    public class ServerUrlModel
    {
        //internal
        public ServerUrlModel(int index, string url)
        {
            Index = index;
            Url = url;
            IsSuccess = null;
        }

        /// <summary>
        /// 是否可用
        /// null 默认，未尝试访问
        /// true  可用
        /// false 不可用
        /// </summary>
        public bool? IsSuccess { get; set; }

        /// <summary>
        /// url地址
        /// </summary>
        public string Url { get; set; }

        /// <summary>
        /// 索引
        /// </summary>
        public int Index { get; set; }
    }
}
